package com.wuchengdong.web.pojo;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import lombok.experimental.Accessors;
import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@ToString
@TableName("orders")
@ApiModel("订单表")
public class Order {

    @TableId
    @ApiModelProperty("订单ID")
    private Integer id;

    @ApiModelProperty("订单关联的预约信息ID")
    private Integer appointmentId;

    @ApiModelProperty("用户ID")
    private Integer userId;

    @ApiModelProperty("订单支付金额")
    private BigDecimal totalPrice;

    @ApiModelProperty("支付状态：pending待支付，paid已支付，failed支付失败")
    private String paymentStatus;

    @ApiModelProperty("创建时间")
    private LocalDateTime createdAt;
}
